﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ResMgr : Sington<ResMgr> {

    public GameObject LoadGO(string Path)
    {
        GameObject go=null;
        if (GameConst.IsResLoad)
            go = GameObject.Instantiate(Resources.Load(Path) as GameObject);
        return go;
    }
    public GameObject LoadUI(string Path)
    {
        return LoadGO("Prefab/"+Path);
    }
    public TextAsset LoadText(string Path)
    {
        return Resources.Load<TextAsset>(Path);
    }
}
